#! /bin/bash
# ----------------------------------------------------------------------------
#
# This script will plot forever. Version 2.
#
# yqm_leaf@163.com
#
# 05/03/21
#
# ----------------------------------------------------------------------------

for i in sd{a..u} ; do
    LOG_FILE=$(echo $(date +'%Y_%m_%d_%H_%M_%S').log)
    tmux new-session -d "while : ; do chia plots create -n 1 -r 4 -b 4608 -f $farmer_key \
        -p $pool_key -t /mnt/$i/temp -d /mnt/$i/plot | tee $LOG_FILE; done"
    sleep 900
done
